package com.hbnu.service.impl;

import com.hbnu.mapper.GoodsMapper;
import com.hbnu.pojo.Goods;
import com.hbnu.service.GoodsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class GoodsServiceImpl implements GoodsService {
    @Resource(name = "goodsMapper")
    private GoodsMapper goodsMapper;

    @Override
    public List<Goods> findAll() {
        return goodsMapper.findAll();
    }
}
